package com.venus.finance.fee.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

import com.venus.common.form.BaseForm;
import com.venus.common.utils.Constants;

public class FeeForm extends BaseForm {

	private static final long serialVersionUID = 1L;
	private Integer feeId;
	private Integer userId;
	private Integer feeTypeId;
	private Integer feeSubTypeId;
	private Integer accountId;
	private String feeDate;
	private Float amount;
	private Float oldAmount;
	private Integer isReturn;
	private String note;
	
	private String chartType;
	
	// 是否分账
	private String splitType;
	
	private Integer feeType;
	
	private String[] feeIds;
	
	// 开始时间
	private String startDate;
	// 结束时间
	private String endDate;
	
	// 金额范围
	private float minAmount;
	private float maxAmount;
	
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.feeId = 0;
		this.userId = 0;
		this.feeTypeId = 0;
		this.feeSubTypeId = 0;
		this.accountId = 0;
		this.feeDate = "";
		this.amount = 0f;
		this.oldAmount = 0f;
		this.isReturn = 0;
		this.note = "";
		this.chartType = "";
		this.splitType = "";
		this.feeType = Constants.FEE_TYPE_ALL; // 所有
		this.startDate = "";
		this.endDate = "";
		this.minAmount = 0f;
		this.maxAmount = 0f;
		
		this.pageRecord = Constants.PAGEINFO_PAGERECORD;
		this.curPage = 1;
		
		
		super.reset(mapping, request);
	}
	
	public Integer getFeeId() {
		return feeId;
	}
	public void setFeeId(Integer feeId) {
		this.feeId = feeId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getFeeTypeId() {
		return feeTypeId;
	}
	public void setFeeTypeId(Integer feeTypeId) {
		this.feeTypeId = feeTypeId;
	}
	public Integer getFeeSubTypeId() {
		return feeSubTypeId;
	}
	public void setFeeSubTypeId(Integer feeSubTypeId) {
		this.feeSubTypeId = feeSubTypeId;
	}
	public Integer getAccountId() {
		return accountId;
	}
	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}
	public String getFeeDate() {
		return feeDate;
	}
	public void setFeeDate(String feeDate) {
		this.feeDate = feeDate;
	}
	public Float getAmount() {
		return amount;
	}
	public void setAmount(Float amount) {
		this.amount = amount;
	}
	public Integer getIsReturn() {
		return isReturn;
	}
	public void setIsReturn(Integer isReturn) {
		this.isReturn = isReturn;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Float getOldAmount() {
		return oldAmount;
	}
	public void setOldAmount(Float oldAmount) {
		this.oldAmount = oldAmount;
	}
	public Integer getFeeType() {
		return feeType;
	}
	public void setFeeType(Integer feeType) {
		this.feeType = feeType;
	}
	public String getSplitType() {
		return splitType;
	}
	public void setSplitType(String splitType) {
		this.splitType = splitType;
	}
	public String getChartType() {
		return chartType;
	}
	public void setChartType(String chartType) {
		this.chartType = chartType;
	}
	public String[] getFeeIds() {
		return feeIds;
	}
	public void setFeeIds(String[] feeIds) {
		this.feeIds = feeIds;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public float getMaxAmount() {
		return maxAmount;
	}

	public void setMaxAmount(float maxAmount) {
		this.maxAmount = maxAmount;
	}

	public float getMinAmount() {
		return minAmount;
	}

	public void setMinAmount(float minAmount) {
		this.minAmount = minAmount;
	}
	
}
